{extend name='layout' /}

{block name='title'}
Sinalma博客
{/block}

{block name="subtitleslug"}index{/block}
{block name='content'}
<!-- <div class="hidden" page="1">ddd</div> -->
<script type="text/javascript">
    // ajax 实现无刷新分页
    function showpage(url){
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function (){
            if(xhr.readyState == 4){
                $main_con = document.getElementById('main-container');
                loadSuccess();
                $main_con.innerHTML = xhr.responseText;
            }
        }
        xhr.open('get',url,true);
        xhr.send(null);
    }
    $(function(){
        
        // 显示欢迎消息
        setTimeout(function() {
          $.hulla.send("欢迎您的访问！", "info");
        }, 100);
        // $("#main-container").empty();

        showpage("__HTP____URL__/index/index/getArticles/page/1");
        
    });
</script>
{/block}